package yc.gg.web;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = {
        "yc.gg.service",
        "yc.gg.service.Impl",
        "yc.gg.web.controller",
        "yc.gg"
})
@MapperScan(basePackages = {"yc.gg.mapper", "yc.gg.*.mapper"})
@EnableScheduling
@Slf4j
public class YcggApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(YcggApplication.class);
        ConfigurableApplicationContext application = app.run(args);
        log.info("悠宠归港后端启动");
    }

}
